/**
 * 
 * 广州锐鹏计算机科技有限公司（www.ruipengkj.com）
 * 
 * 
 * Copyright (c) 2011-2012 RUIPENGKJ.Co.Ltd. All rights reserved.
 * 
 * */
package com.ruipengkj.bean;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

/**
 * 说明： Entity Name 在线预订表
 * 
 * @Author：李智深
 * @Date：2012-03-12
 */
@Entity
@Table(name="ruipeng_tb_TScheduled")
public class TScheduled implements Serializable{

	private static final long serialVersionUID = 1L;

	private String ScheduledID;//编号

	private Date HappenTime=new Date();//预订时间DATETIME
	
	private int personNumber;//预订人数
	
	private Date ConsumptionTime=new Date();//预订消费时间DATETIME
	
	private String AdditionalContacts;//额外联系人
	
	private String AdditionalPhone;//额外联系电话
	
	private byte AdditionalSex;//额外联系人性别
	
	private String OtherRemarks;//其他备注
	
	private byte Status;//预订状态   1.预订 2.完成
	
	private String RelatedOrderID;//相关订单编号
	
	private String Reply;//商家回复
	
	private String PreProject;//预订项目
	
	private String OrderingName;//订餐人姓名
	
	private String OrderingPhone;//订餐人电话
	
	private byte OrderingSex;//订餐人性别
	
	private TUser TUser;//用户
	
	private Date EndTime;//结束时间  用于查询  不进数据库
	@Id
	@Column(name = "ScheduledID",length=15)
	public String getScheduledID() {
		return ScheduledID;
	}

	public void setScheduledID(String scheduledID) {
		ScheduledID = scheduledID;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "HappenTime", nullable = false, length = 19)
	public Date getHappenTime() {
		return HappenTime;
	}

	public void setHappenTime(Date happenTime) {
		HappenTime = happenTime;
	}
	@Column(name = "PersonNumber")
	public int getPersonNumber() {
		return personNumber;
	}

	public void setPersonNumber(int personNumber) {
		this.personNumber = personNumber;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "ConsumptionTime", nullable = false, length = 19)
	public Date getConsumptionTime() {
		return ConsumptionTime;
	}

	public void setConsumptionTime(Date consumptionTime) {
		ConsumptionTime = consumptionTime;
	}
	@Column(name = "AdditionalContacts",length=20)
	public String getAdditionalContacts() {
		return AdditionalContacts;
	}

	public void setAdditionalContacts(String additionalContacts) {
		AdditionalContacts = additionalContacts;
	}
	@Column(name = "AdditionalPhone",length=30)
	public String getAdditionalPhone() {
		return AdditionalPhone;
	}

	public void setAdditionalPhone(String additionalPhone) {
		AdditionalPhone = additionalPhone;
	}
	@Column(name = "AdditionalSex")
	public byte getAdditionalSex() {
		return AdditionalSex;
	}

	public void setAdditionalSex(byte additionalSex) {
		AdditionalSex = additionalSex;
	}
	@Column(name = "OtherRemarks",length=100)
	public String getOtherRemarks() {
		return OtherRemarks;
	}

	public void setOtherRemarks(String otherRemarks) {
		OtherRemarks = otherRemarks;
	}
	@Column(name = "Status")
	public byte getStatus() {
		return Status;
	}

	public void setStatus(byte status) {
		Status = status;
	}
	@Column(name = "RelatedOrderID",length=15)
	public String getRelatedOrderID() {
		return RelatedOrderID;
	}

	public void setRelatedOrderID(String relatedOrderID) {
		RelatedOrderID = relatedOrderID;
	}
	@Column(name = "Reply",length=100)
	public String getReply() {
		return Reply;
	}

	public void setReply(String reply) {
		Reply = reply;
	}
	@Column(name = "PreProject",length=15)
	public String getPreProject() {
		return PreProject;
	}

	public void setPreProject(String preProject) {
		PreProject = preProject;
	}
	@Column(name = "OrderingName",length=20)
	public String getOrderingName() {
		return OrderingName;
	}

	public void setOrderingName(String orderingName) {
		OrderingName = orderingName;
	}
	@Column(name = "OrderingPhone",length=30)
	public String getOrderingPhone() {
		return OrderingPhone;
	}

	public void setOrderingPhone(String orderingPhone) {
		OrderingPhone = orderingPhone;
	}

	@Column(name = "OrderingSex")
	public byte getOrderingSex() {
		return OrderingSex;
	}

	public void setOrderingSex(byte orderingSex) {
		OrderingSex = orderingSex;
	}
	@ManyToOne
	@JoinColumn(name="UserID")
	public TUser getTUser() {
		return TUser;
	}

	public void setTUser(TUser tUser) {
		TUser = tUser;
	}
	@Transient
	public Date getEndTime() {
		return EndTime;
	}

	public void setEndTime(Date endTime) {
		EndTime = endTime;
	}
	
}
